﻿<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <!--    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">-->
    <title>视频回放</title>

    <script type="text/javascript" src="http://111.160.78.62:88/808gps/open/player/swfobject-all.js"></script>
    <script type="text/javascript" src="http://111.160.78.62:88/808gps/open/player/swfobject.js"></script>

    <script type="text/javascript" src="http://111.160.78.62:88/808gps/open/player/en.xml"></script>
    <script type="text/javascript" src="http://111.160.78.62:88/808gps/open/player/en.xml"></script>


    <script type="text/javascript" src="http://111.160.78.62:88/808gps/open/player/js/cmsv6player.min.js"></script>
   
    <script>
        //老版本升级需要注意红色部分
        var isInitFinished = false;//视频插件是否加载完成

        function onReady () {
            //加载语言

            initPlayerExample()
        }
        //初始化视频插件(PC/手机 页面)
        function initPlayerExample () {
            //视频插件初始化参数
            var params = {
                lang: "zh-cn" //"en", "zh-cn", "zh-tw"
            };
            //初始化flash
            //swfobject.embedSWF("player.swf", "cmsv6flash", 400, 400, "11.0.0", null, null, params, null);
            //初始化视频播放器
            ttxVideoAll.init("cmsv6flash", 600, 400, params, "auto");
            initFlash();
        }
        //视频插件是否加载完成
        function initFlash () {
            if (typeof swfobject == "undefined" || swfobject.getObjectById("cmsv6flash") == null ||
                typeof swfobject.getObjectById("cmsv6flash").setWindowNum == "undefined") {
                setTimeout(initFlash, 50);
            } else {
                //设置视频插件的语言
                swfobject.getObjectById("cmsv6flash").setLanguage("cn.xml");
                //先将全部窗口创建好
                swfobject.getObjectById("cmsv6flash").setWindowNum(36);
                //再配置当前显示的窗口数目
                swfobject.getObjectById("cmsv6flash").setWindowNum(4);
                //设置视频插件的服务器ip和登录服务器端口
                swfobject.getObjectById("cmsv6flash").setServerInfo("111.160.78.62", "6605");
                isInitFinished = true;
var playUrl = GetQueryValue("URL") + '&jsession=&DevIDNO=' + GetQueryValue("DevIDNO") + '&FILELOC=' + GetQueryValue("FILELOC") + '&FILESVR=' + GetQueryValue("FILESVR") + '&FILECHN=' + GetQueryValue("FILECHN") + '&FILEBEG=' + GetQueryValue("FILEBEG") + '&FILEEND=' + GetQueryValue("FILEEND") + '&PLAYIFRM=0&PLAYFILE='+ GetQueryValue("PLAYFILE") + '&PLAYBEG=0&PLAYEND=0&PLAYCHN=0&YEAR=' + GetQueryValue("YEAR") + '&MON=' + GetQueryValue("MON") + '&DAY=' + GetQueryValue("DAY") 

                console.log(playUrl )

                swfobject.startVodM(playUrl, '');
            }
        }
function GetQueryValue(queryName) {
	var reg = new RegExp("(^|&)" + queryName + "=([^&]*)(&|$)", "i");
	var r = window.location.search.substr(1).match(reg);
	if (r != null) {
		return decodeURI(r[2]);
	} else {
		return null;
	}
}

       
    </script>
</head>

<body onresize="handleScreen();" onload="onReady();" style="zoom: 1;">



    <div id="cmsv6flash" style="width: 600px;  height: 600px; background-color: rgb(0, 0, 0); position: relative;">
    </div>


</body>


</html>